/*
 * Copyright (c) 2001 Boris Pruessmann and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Common Public License v0.5
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v05.html
 * 
 * Contributors:
 *    Boris Pruessmann - Initial implementation.
 */
package net.sourceforge.p4eclipse.ui;

import java.text.MessageFormat;
import java.util.List;

import org.eclipse.swt.graphics.Image;

/**
  * @version 	1.0
  * @author		<a href="mailto:bpruessmann@users.sourceforge.net">Boris Pruessmann</a>
  */
class PerforceDecoration
{
	private String text;
	private List overlays;
	
	public PerforceDecoration(String text, List overlays)
	{
		this.text = text;
		this.overlays = overlays;
	}
	
	public List getOverlays()
	{
		return overlays;
	}
	
	public String decorateText(String label)
	{
		return MessageFormat.format(text, new String[] { label });
	}
}
